"""
URL configuration for djangoall project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from .views import registerview, adduser, updateuser, deleteuser, getuser, getuser2, getuser3, login, addaddress, addstore, deleteaddress, getaddress, getstoreinfo, getinfo
from .views import getpostlist, getdata_page, getdata_id, getdata_put, getdata_page_isdelete, delete_store, getaddress_info
from .views import getdata_seatch, Adus
# 子路由配置文件，定义 URL 路径与视图的映射关系

urlpatterns = [
    path('firtpage/', registerview),    # 后台管理路由
    path('getmethod/', Adus.as_view()),
    path('postmethod/', Adus.as_view()),
    path('deletemethod/', Adus.as_view()),
    path('putmethod/', Adus.as_view()),
    path('adduser/', adduser),
    path('updateuser/', updateuser),
    path('deleteuser/', deleteuser),
    path('getuser/', getuser),
    path('getuser2/', getuser2),
    path('getuser3/', getuser3),
    path('login/', login),
    path('addaddress/', addaddress),
    path('addstore/', addstore),
    path('deleteaddress/', deleteaddress),
    path('getaddress/', getaddress),
    path('getstoreinfo/', getstoreinfo),
    path('getinfo/', getinfo),
    path('getpostlist/', getpostlist),
    path('getdata_page/', getdata_page),
    path('getdata_page_isdelete/', getdata_page_isdelete),
    path('getaddress_info/', getaddress_info),
    path('getdata_id/<str:id>', getdata_id),
    path('getdata_put/<str:id>', getdata_put),
    path('delete_store/<str:id>', delete_store),
    path('getdata_seatch/', getdata_seatch),
    # 可在此添加自定义路由，如：
    # path（'blog/'， include（'blog.urls'）），
]
